﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Vertica.Data.VerticaClient;

namespace Hp.Vertica.Client.Internal
{
    public class VerticaDataType_Float : VerticaDataTypeWithPrecision
    {
        public VerticaDataType_Float() { }

        public VerticaDataType_Float(Int32 precision) : base(precision) { }

        public override int MinPrecision
        {
            get { return 1; }
        }

        public override int MaxPrecision
        {
            get { return 53; }
        }

        public override int DefaultPrecision
        {
            get { return 53; }
        }

        public override string Name
        {
            get { return "FLOAT"; }
        }

        public override string ToString()
        {
            return this.Name;
        }

        public override VerticaType VerticaType
        {
            get { return VerticaType.Double; }
        }
    }
}
